import service from '@/utils/request'
// @Tags SpikesActivities
// @Summary 创建spikesActivities表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SpikesActivities true "创建spikesActivities表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /spikesActivities/createSpikesActivities [post]
export const createSpikesActivities = (data) => {
  return service({
    url: '/spikesActivities/createSpikesActivities',
    method: 'post',
    data
  })
}

// @Tags SpikesActivities
// @Summary 删除spikesActivities表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SpikesActivities true "删除spikesActivities表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /spikesActivities/deleteSpikesActivities [delete]
export const deleteSpikesActivities = (params) => {
  return service({
    url: '/spikesActivities/deleteSpikesActivities',
    method: 'delete',
    params
  })
}

// @Tags SpikesActivities
// @Summary 批量删除spikesActivities表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除spikesActivities表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /spikesActivities/deleteSpikesActivities [delete]
export const deleteSpikesActivitiesByIds = (params) => {
  return service({
    url: '/spikesActivities/deleteSpikesActivitiesByIds',
    method: 'delete',
    params
  })
}

// @Tags SpikesActivities
// @Summary 更新spikesActivities表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SpikesActivities true "更新spikesActivities表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /spikesActivities/updateSpikesActivities [put]
export const updateSpikesActivities = (data) => {
  return service({
    url: '/spikesActivities/updateSpikesActivities',
    method: 'put',
    data
  })
}

// @Tags SpikesActivities
// @Summary 用id查询spikesActivities表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.SpikesActivities true "用id查询spikesActivities表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /spikesActivities/findSpikesActivities [get]
export const findSpikesActivities = (params) => {
  return service({
    url: '/spikesActivities/findSpikesActivities',
    method: 'get',
    params
  })
}

// @Tags SpikesActivities
// @Summary 分页获取spikesActivities表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取spikesActivities表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /spikesActivities/getSpikesActivitiesList [get]
export const getSpikesActivitiesList = (params) => {
  return service({
    url: '/spikesActivities/getSpikesActivitiesList',
    method: 'get',
    params
  })
}

// @Tags SpikesActivities
// @Summary 不需要鉴权的spikesActivities表接口
// @accept application/json
// @Produce application/json
// @Param data query spikes_activityReq.SpikesActivitiesSearch true "分页获取spikesActivities表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /spikesActivities/getSpikesActivitiesPublic [get]
export const getSpikesActivitiesPublic = () => {
  return service({
    url: '/spikesActivities/getSpikesActivitiesPublic',
    method: 'get',
  })
}
